home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / DEPOSITO / REmovido / Nave / Drakojan.swf / scripts / DefineSprite_715 / frame_35 / PlaceObject2_703_21 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Text File  |  2006-07-21  |  595b  |  28 lines

  1. onClipEvent(enterFrame){
  2.    i = 1;
  3.    while(i <= _root.numEnemy)
  4.    {
  5.       if(this.hitTest(_root["enemy" + i]))
  6.       {
  7.          if(_root["enemy" + i]._currentframe < 2)
  8.          {
  9.             nextFrame();
  10.             _root["enemy" + i].gotoAndPlay(2);
  11.             _root.spaceship.laserCounter--;
  12.          }
  13.       }
  14.       i++;
  15.    }
  16.    n = 1;
  17.    while(n <= _root.numdropship)
  18.    {
  19.       if(this.hitTest(_root["dropship" + n]))
  20.       {
  21.          _root["dropship" + n].nextFrame();
  22.          _root.spaceship.laserCounter--;
  23.          nextFrame();
  24.       }
  25.       n++;
  26.    }
  27. }
  28.